package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/*
    主配置类，代替applicationContext.xml配置文件
 */
@Configuration //表示该类是一个配置类，可以省略不写
//<context:component-scan base-package="com.itheima"/>
@ComponentScan("com.itheima")
//<context:property-placeholder location="classpath:jdbc.properties"/>
@PropertySource("classpath:jdbc.properties")
//引入分配置文件
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfiguration {

}
